package com.aidong.carnival.controllers.mine;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.aidong.carnival.controllers.concerns.Result;
import com.aidong.carnival.controllers.concerns.Success;
import com.aidong.carnival.service.DrawService;

@RestController
@RequestMapping("/mine")
public class DrawController {

	@Autowired
	DrawService drawService;

	@RequestMapping("/drawCode")
	public Result codeList(@RequestParam(value = "idongId", required = true) int idongId) {
		List<String> list = drawService.codeList(idongId);
		
		return new Success(list);
	}

}
